<div class="left">

    <div class="description" style="width:760px">

        <h1>Vijesti</h1>

        <br>

        <div class="all-news">
            <? foreach($news as $n): ?>

                    <? $href=base_url('news/'.urlify::filter($n['post_title']).'-'.$n['post_ID']); ?>


                    <div class="onenews clearfix">
                        <div class="pic">
                            <?
                            if(isset($n['filename']))
                            {
                                $filename=get_thumbnail(113, 87, $n['filename']);
                                ?>
                                <a href="<?= $href ?>"><img src="<?= base_url() ?>cms/pro-gallery/<?= $n['path'].'/'.$filename ?>" alt="<?= $n['post_title'] ?>"></a>
                                <?
                            }
                            ?>

                        </div>
                        <h2><a href="<?= $href ?>"><?= $n['post_title'] ?></a></h2>
                        <p><?
                    $str=clean_html_p($n['content']);
                    $cnt=strlen($str);
                    $limit=230;
                    if($cnt > $limit)
                    {
                        echo substr($str, 0, $limit).'...';
                    } else
                        echo $str;
                            ?> <a href="<?= $href ?>" class="whole-news">cijela vijest</a></p>
                    </div>
                <? endforeach; ?>
        </div>
    </div>
</div>